Make the invisible invisible
authorMatthias Clasen <mclasen@redhat.com>
Tue, 5 Feb 2019 21:52:53 +0000 (16:52 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 Feb 2019 21:55:07 +0000 (16:55 -0500)
The change to make widgets visible by default broke GtkInvisibles
special-cased state handling and that in turn caused picking in
the inspector to break with another recent change.

This change makes the inspector pick button work again.

gtk/gtkwidget.c

index b6d3026c32c4188308a8bf81ce97e94921ddfa90..782888e310f57bceba68e256cd0fd9466059686e 100644 (file)
@@ -11983,6 +11983,7 @@ static gboolean
 gtk_widget_class_get_visible_by_default (GtkWidgetClass *widget_class)
 {
   return !(GTK_IS_WINDOW_CLASS (widget_class) ||
+           GTK_IS_INVISIBLE_CLASS (widget_class) ||
            GTK_IS_POPOVER_CLASS (widget_class));
 }